﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Agenda_Project.Models.Committee>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Edit
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Edit</h2>

<script src="<%: Url.Content("~/Scripts/jquery.validate.min.js") %>"></script>
<script src="<%: Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js") %>"></script>

<% using (Html.BeginForm()) { %>
    <%: Html.ValidationSummary(true) %>

    <fieldset>
        <legend>Committee</legend>

        <%: Html.HiddenFor(model => model.ID) %>
        
        <table>

        <tr>
        <td class="editor-label"><%: Html.LabelFor(model => model.Code) %></td>
        <td>&nbsp;:&nbsp;</td>
        <td class="editor-field">
            <%: Html.EditorFor(model => model.Code) %>
            <%: Html.ValidationMessageFor(model => model.Code) %>
        </td>
        </tr>

        <tr>
        <td class="editor-label"><%: Html.LabelFor(model => model.Name) %></td>
        <td>&nbsp;:&nbsp;</td>
        <td class="editor-field">
            <%: Html.EditorFor(model => model.Name) %>
            <%: Html.ValidationMessageFor(model => model.Name) %>
        </td>
        </tr>

        <tr>
        <td class="editor-label"><%: Html.LabelFor(model => model.NameTH) %></td>
        <td>&nbsp;:&nbsp;</td>
        <td class="editor-field">
            <%: Html.EditorFor(model => model.NameTH) %>
            <%: Html.ValidationMessageFor(model => model.NameTH) %>
        </td>
        </tr>

        <tr>
        <td class="editor-label"><%: Html.LabelFor(model => model.Remark) %></td>
        <td>&nbsp;:&nbsp;</td>
        <td class="editor-field">
            <%: Html.EditorFor(model => model.Remark) %>
            <%: Html.ValidationMessageFor(model => model.Remark) %>
        </td>
        </tr>

        <tr>
        <td class="editor-label">&nbsp;</td>
        <td>&nbsp;</td>
        <td class="editor-field">&nbsp;</td>
        </tr>

        <tr>
        <td class="editor-label"><%: Html.ActionLink("Back to List", "Index") %></td>
        <td>&nbsp;</td>
        <td class="editor-field"><input type="submit" value="Save" /></td>
        </tr>

        </table>


<%--
        <div class="editor-label">
            <%: Html.LabelFor(model => model.CancelByID, "CancelBy") %>
        </div>
        <div class="editor-field">
            <%: Html.DropDownList("CancelByID", String.Empty) %>
            <%: Html.ValidationMessageFor(model => model.CancelByID) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.CancelDate) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.CancelDate) %>
            <%: Html.ValidationMessageFor(model => model.CancelDate) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.CancelTime) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.CancelTime) %>
            <%: Html.ValidationMessageFor(model => model.CancelTime) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.Active) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.Active) %>
            <%: Html.ValidationMessageFor(model => model.Active) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.CreateByID, "CreateBy") %>
        </div>
        <div class="editor-field">
            <%: Html.DropDownList("CreateByID", String.Empty) %>
            <%: Html.ValidationMessageFor(model => model.CreateByID) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.CreateDate) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.CreateDate) %>
            <%: Html.ValidationMessageFor(model => model.CreateDate) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.CreateTime) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.CreateTime) %>
            <%: Html.ValidationMessageFor(model => model.CreateTime) %>
        </div>--%>

    </fieldset>
<% } %>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
